﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using EmbeddedSensorCloud.Core.Plugin;
using System.IO;
using EmbeddedSensorCloud.Console.Commands;
using System.Collections.Generic;
using EmbeddedSensorCloud.Log;

namespace EmbeddedSensorCloud.UnitTest
{
    [TestClass]
    public class Commands_Test
    {
        [TestMethod]
        [ExpectedException(typeof(ArgumentException))]
        public void Commands_Exit_Initialize_Null_Test()
        {
            ExitCommand com = new ExitCommand(null);
        }

        [TestMethod]
        [ExpectedException(typeof(ArgumentException))]
        public void Commands_LogFile_Initialize_Null_Test()
        {
            List<LogBase> logs = null;
            LogFileCommand com = new LogFileCommand(logs);
        }

        [TestMethod]
        [ExpectedException(typeof(ArgumentException))]
        public void Commands_Plugin_Initialize_Null_Test()
        {
            PluginCommand com = new PluginCommand(null);
        }

        [TestMethod]
        [ExpectedException(typeof(ArgumentException))]
        public void Commands_Server_Initialize_Null_Test()
        {
            ServerCommand com = new ServerCommand(null);
        }
    }
}
